package com.ocom.aiot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.aiot.vo.accessdevice.AddDeviceVerInfoVo;
import com.ocom.aiot.vo.accessdevice.GetDeviceVerInfoVo;
import com.ocom.common.entity.aiot.EntityMjAppVerInfo;

import java.util.List;


public interface MjAppVerInfoService extends IService<EntityMjAppVerInfo> {


    /**
     * 获取升级文件记录(getMjOsVerInfo)
     *
     * @param
     * @return */
    public List<EntityMjAppVerInfo> AccessDeviceGetDeviceVerInfo(GetDeviceVerInfoVo getDeviceVerInfoVo);

    /**
     * 保存升级文件记录(AccessDeviceAddDeviceVerInfo)
     * */
    public void AccessDeviceAddDeviceVerInfo(AddDeviceVerInfoVo addDeviceVerInfoVo);

    //查询固件版本信息
    public EntityMjAppVerInfo GetMjAppVer(String appVer);

    //2.7.3.删除设备升级版本（deleteDeviceVerInfo）
    public void AccessDeviceDeleteDeviceVerInfo(Long id);


    //从门禁设备app版本信息表mj_app_ver_info查找apk_type=2、app_ver=mj_device_info . app_ver_tab的记录
    EntityMjAppVerInfo selectSinglechipAppVerInfo(String appVerTab);
}
